<B:UIKD x:Class="WPFExcelReport.TKDSTAMM"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:SP="clr-namespace:WPFExcelReport;assembly=TKDANSP"   
                    xmlns:KR="clr-namespace:WPFExcelReport;assembly=TKUNDADR" 
                    xmlns:KV="clr-namespace:WPFExcelReport;assembly=TKUNDVER" 
                    xmlns:VK="clr-namespace:WPFExcelReport;assembly=TVKKOPF"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
          xmlns:B="clr-namespace:WPFExcelReport;assembly=TKDSTAMM" 
                    FontSize="14"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <B:UIKD.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>  
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </B:UIKD.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>

        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>

            </Grid.ColumnDefinitions>
            <me:TKD02 Grid.Column="0" 
                  FTAUTOSUM="True"
                  SKEY1="KDMANDANT"  KEY1="KDVERSUML" TKEY1="已开票"
                  SKEY2="KDMANDANT"  KEY2="SWING" TKEY2="总欠费"
                  TCOUNT1="总个数"
                  ORDERNUM="{Binding KEY,ElementName=cKD}" 
                  IsEdit="{Binding IsEdit,ElementName=TV}"
                  IsSaved="{Binding IsSaved,ElementName=TV}"
                  x:Name="cList"/>
            <VK:TVK03 Grid.Column="1"  
                      KUNDNRBY="{Binding KEY,ElementName=cKD}"/>
        </Grid>
        <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <B:TKDBOX  Grid.Row="1" Grid.Column="0" x:Name="cKD"  
                       IsEdit="{Binding IsEdit,ElementName=TV}"
                       IsSaved="{Binding IsSaved,ElementName=TV}"
                        />
            <SP:TKD14 Grid.Row="1" Grid.Column="1" x:Name="cKD14"  
                        VerticalAlignment="Top"
                        EXAUF="{Binding KEY,ElementName=cKD}"  />
        </Grid>
        <KR:TKUNDADR  Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="0,10,0,0"
                      KUNDNR="{Binding KEY,ElementName=cKD}" 
                       IsEdit="{Binding IsEdit,ElementName=TV}"
                       IsSaved="{Binding IsSaved,ElementName=TV}"
                      />
        <KV:TKUNDVER  Grid.Row="2" Grid.Column="1" Margin="0,10,0,0"
                      KUNDNR="{Binding KEY,ElementName=cKD}" Visibility="Collapsed"
                       IsEdit="{Binding IsEdit,ElementName=TV}"
                       IsSaved="{Binding IsSaved,ElementName=TV}"
                      />

    </Grid>
</B:UIKD>
